package com.itheima.system.feign;

import com.itheima.entity.Result;
import com.itheima.system.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @PackageName com.itheima.system.feign
 * @ProjectName Ceres-Work
 * @Created by Chanly on 2020/10/17 17:39
 **/
@FeignClient(name = "user")
public interface UserFeign {
    @PostMapping("/user/login")
    Result login(@RequestBody User user);
}
